#ifndef PLAYER_H
#define PLAYER_H

#include <QMainWindow>
#include <QWidget>
#include <QMediaPlayer>
#include <QMediaPlaylist>
#include <QListView>
#include <QAbstractItemView>
#include <QListWidget>

QT_BEGIN_NAMESPACE
namespace Ui { class Player; }
QT_END_NAMESPACE

class Player : public QWidget
{
    Q_OBJECT

public:
    Player(QWidget *parent = nullptr);
    ~Player();

private slots:
    void open();
    void seek(int);

private:
    Ui::Player *ui;

    QMediaPlayer *m_player = nullptr;
    QMediaPlaylist *m_playlist = nullptr;
    QVideoWidget *m_videoWidget = nullptr;
    // QAbstractItemView *m_playlistView = nullptr;
    QListWidget *m_playlistView = nullptr;

};
#endif // PLAYER_H
